import React from 'react'
import { Route } from 'react-router-dom'

import TopicList from '../views/topic-list'
// import TopicDetail from '../views/topic-detail'

export default class MyRouters extends React.Component {
    componentDidMount() {

    }

    render() {
        return (
            <div>
                xxxx
                <Route path="/list" component={TopicList} key="1" />
                {/* <Route path="/" render={} exact key="first" />
                <Route path="/detail" component={TopicDetail} key="2" /> */}
            </div>
        )
    }
}

// export default () => [
//     <Route path="/" render={() => <Redirect to="/list" />} exact key="first" />,
//     <Route path="/list" component={TopicList} key="1" />,
//     <Route path="/detail" component={TopicDetail} key="2" />,
//     // <Redirect from="/" to="/list" key="0" exact />,
// ]
